"use strict";
cc._RF.push(module, '58e14iGRztFuIrFqHEjwj/v', 'LobbySceneBlockCheckPoint');
// scripts/LobbySceneBlockCheckPoint.js

"use strict";

var e = require;
var t = module;
var n = e("LevelManager"),
    o = e("LevelSceneManager");
cc.Class({
  "extends": cc.Component,
  properties: {},
  onBeginContact: function onBeginContact() {
    this.node.destroy();
    LevelManager.Instance.GameCurrentOperationMode == n.GameOperationMode.Defense && LevelManager.Instance.HealthProgressBar.progress <= .55 ? LevelSceneManager.Instance.CreateNextScene(o.GameSceneBlockPrefabType.KingStoryLobby) : LevelManager.Instance.GameCurrentOperationMode != n.GameOperationMode.Defense || LevelManager.Instance.HealthProgressBar.node.active || LevelManager.Instance.AttackProgressBar.node.active ? LevelSceneManager.Instance.CreateNextScene(o.GameSceneBlockPrefabType.Lobby) : LevelSceneManager.Instance.CreateNextScene(o.GameSceneBlockPrefabType.KingStoryLobby);
  }
});

cc._RF.pop();